package com.hongye.why.base.net;

import java.util.HashMap;
import java.util.Map;

/**
 * 网络请求
 */
public class RequestParams {
    private Map<String,String> params;
    private String path;

    public RequestParams() {
        this(null);
    }

    public RequestParams(String path) {
        this.path = path;
        params = new HashMap<>();
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParam(String key, String value) {
        params.put(key,value);
    }
}
